<?php
defined('BY_JYA') or exit('error');
$list = array(
			array('title'=>'特色-购物','list'=>array(
							array('name'=>'jy_cashier','title'=>'收银台','desc'=>'线上线下收银','icon'=>'',),
							array('name'=>'jy_jdpm','title'=>'一元拍','desc'=>'一元拍商品，参拍就有奖励！','icon'=>'',),
							array('name'=>'jy_duoduocai','title'=>'拼多多买菜','desc'=>'全民都需要的买菜场景','icon'=>''),
							array('name'=>'jy_pingdd','title'=>'拼多多拼单','desc'=>'拼单商城，拼着买更便宜','icon'=>'',),
							array('name'=>'jy_pingdd_yafee','title'=>'拼多多定金返现版','desc'=>'定金拼单，还返现','icon'=>'',),
							array('name'=>'jy_pingdd_pin','title'=>'拼多多百人拼团','desc'=>'百人拼团，抽中3人(不中则奖励)','icon'=>'',),
							array('name'=>'jy_pingdd_yapin','title'=>'快趣拼团保证金版','desc'=>'快趣拼拼团，抽中3人(不中则奖励)','icon'=>'',),
							array('name'=>'jy_weishop','title'=>'多门店','desc'=>'街道多个门店,便利店超市','image'=>'../addons/jy_weishop/images/icon_store.jpg','actionurl'=>'store.count/'),
							array('name'=>'jy_commission','title'=>'微客分销','desc'=>'全民微客人人分销','icon'=>'',),
							array('name'=>'jy_levelfee','title'=>'复购等级分销','desc'=>'自定义等级复购分销机制','icon'=>'',),
							array('name'=>'jy_newshopfee','title'=>'新零售复购分销商城','desc'=>'销售,平级,复购,超越,绩效奖励','icon'=>'',),
							array('name'=>'jy_friends_shop','title'=>'朋友圈商城','desc'=>'代理商，自定义商品价格','icon'=>'',),
							array('name'=>'jy_taobaoke','title'=>'淘宝客','desc'=>'淘宝流量分销','icon'=>'',),
							array('name'=>'jy_jdk','title'=>'京东客','desc'=>'京东流量分销','icon'=>'',),
							array('name'=>'jy_pddke','title'=>'拼多多客','desc'=>'拼多多流量分销','icon'=>'',),
							array('name'=>'jy_weishopke','title'=>'全佣返电商客','desc'=>'集合主流电商客','icon'=>'',),
							array('name'=>'jy_merch','title'=>'多商户','desc'=>'多商户,多商家开店','icon'=>'',),
							array('name'=>'jy_supplier','title'=>'供货商','desc'=>'进货ERM,厂家供货','icon'=>'',),
							array('name'=>'jy_teamfee','title'=>'社区团长极差分红','desc'=>'社区团长带团分红','icon'=>'',),
							array('name'=>'jy_area_agent','title'=>'经销商','desc'=>'区域代理商经销商','icon'=>'',),
							//array('name'=>'jy_worldshop','title'=>'全球通','desc'=>'全球海关流量分销','icon'=>'',),
							array('name'=>'jy_weidian','title'=>'微信小店','desc'=>'对接微信小店，强化全网店铺','icon'=>'',),
							array('name'=>'jy_weishopmeituan','title'=>'美团外卖','desc'=>'商城系外卖，统一大局','icon'=>''),
							array('name'=>'jy_weidish_xibei','title'=>'西贝在线点餐','desc'=>'商城系点餐，统一大局','icon'=>''),
							array('name'=>'jy_weidish_naixue','title'=>'奈雪e茶餐饮','desc'=>'商城系餐饮，统一大局','icon'=>''),
							array('name'=>'jy_weishoppei','title'=>'生鲜配送仓库多门店版','desc'=>'生鲜配送，多门店版','icon'=>''),
							array('name'=>'jy_weishoppeishop','title'=>'生鲜配送多门店商城版','desc'=>'生鲜配送，商城购物版','icon'=>''),
							array('name'=>'jy_shopyouone','title'=>'地方优选单店版','desc'=>'地方性强的，地方商城','icon'=>''),
							array('name'=>'jy_shopyou','title'=>'盛兴优选版','desc'=>'地方性强的，地方商城','icon'=>''),
							array('name'=>'jy_weishopfarmer','title'=>'农夫溯源商城','desc'=>'农产品溯源商城，一码一物','icon'=>''),
							array('name'=>'jy_weishopzc','title'=>'公益众筹商城','desc'=>'公益性的商城场景','icon'=>''),
							array('name'=>'jy_yzwd','title'=>'有赞微店','desc'=>'对接有赞微店，强化全网店铺','icon'=>'',),
							array('name'=>'jy_weishop_qingcang','title'=>'每日清仓','desc'=>'每日清仓，打骨折的折扣','icon'=>''),
							array('name'=>'jy_weishop_pinpai','title'=>'品牌馆','desc'=>'专注品牌集中营，放心购','icon'=>''),
							array('name'=>'jy_weishop_9kuai','title'=>'9块9特卖','desc'=>'9块9特卖，一口价购销货','icon'=>''),
							array('name'=>'jy_weishop_zhekou','title'=>'找折扣','desc'=>'折扣商品集中营，折扣卡券集中','icon'=>''),
							array('name'=>'jy_weishop_shishang','title'=>'时尚穿搭','desc'=>'时尚穿搭，服装电商一键铺货','icon'=>''),
							array('name'=>'jy_weishop_food','title'=>'食品超市','desc'=>'美食到家，特色小吃','icon'=>''),
							array('name'=>'jy_weishop_jiadian','title'=>'电器城','desc'=>'电器城，品牌家电购','icon'=>''),
							//array('name'=>'jy_h5game','title'=>'游戏营销','desc'=>'用游戏来促进成交！','icon'=>''),
							array('name'=>'jy_creditshop','title'=>'积分商城','desc'=>'让积分产生二次消费','icon'=>'',),
							array('name'=>'jy_jifenyou','title'=>'积分优品','desc'=>'让积分产生二次消费','icon'=>'',),
							array('name'=>'jy_globonus','title'=>'全民股东','desc'=>'股东形式运营店铺','icon'=>'',),
							array('name'=>'jy_exchange','title'=>'兑换中心','desc'=>'各种兑换交换中心','icon'=>'',),
							array('name'=>'jy_sns','title'=>'社区论坛','desc'=>'社交互动成交','icon'=>'',),
			)),
			array('title'=>'活动-购物','list'=>array(
							array('name'=>'jy_weishopapplive','title'=>'全民分销直播客','desc'=>'全民做主播带货','icon'=>''),
							array('name'=>'jy_douyintui','title'=>'抖音霸屏','desc'=>'完美匹配电商客的抖音营销','icon'=>'',),
							array('name'=>'jy_weishoplive','title'=>'互动直播','desc'=>'主播发红包,券','icon'=>''),
							array('name'=>'jy_weishop','title'=>'小程序直播','desc'=>'自主开播,无需第三方','image'=>'../addons/jy_weishop/images/icon_store.jpg','actionurl'=>'jy_weishop/activity.live.index/'),
							array('name'=>'jy_weishop','title'=>'今日运势','desc'=>'借势购物,魔性流量','image'=>'../addons/jy_weishop/images/icon_yunshi.jpg','actionurl'=>'jy_weishop/activity.sales.luck/'),
							array('name'=>'jy_weishop','title'=>'今日特价','desc'=>'经典日新,线下原型','image'=>'../addons/jy_weishop/images/icon_tejia.jpg','actionurl'=>'jy_weishop/activity.sales.offer/'),
							array('name'=>'jy_weishop','title'=>'今日省钱','desc'=>'快消品,必备502胶水','image'=>'../addons/jy_weishop/images/icon_sheng.jpg','actionurl'=>'jy_weishop/activity.sales.feemoney/'),
							array('name'=>'jy_weishop','title'=>'互动游戏','desc'=>'游戏营销,海量扩展','image'=>'../addons/jy_weishop/images/icon_game.jpg','actionurl'=>'jy_weishop/game.list/'),
							array('name'=>'jy_aligroup','title'=>'阿里拼团','desc'=>'人多优惠大，看拼多多','icon'=>'',),
							array('name'=>'jy_seckill','title'=>'整点秒杀','desc'=>'定时秒杀，刺激活跃','icon'=>'',),
							array('name'=>'jy_yushou','title'=>'整点预售','desc'=>'定时预售，独立发货','icon'=>'',),
							array('name'=>'jy_bargain','title'=>'砍价活动','desc'=>'大家一起来砍价','icon'=>'',),
							array('name'=>'jy_vote','title'=>'买家秀','desc'=>'买家秀,买家秀必备神器','icon'=>'',),
							array('name'=>'jy_weishop_cutprice','title'=>'降价拍','desc'=>'降价就买，不一样的下单','icon'=>'',),
							//array('name'=>'jy_unitary','title'=>'人气夺宝','desc'=>'活跃起来，夺宝促成交','icon'=>'',),
							//array('name'=>'jy_paysale','title'=>'支付推广','desc'=>'支付促成交','icon'=>'',),
							array('name'=>'jy_zhongchou','title'=>'微众筹','desc'=>'产品项目众筹推广品牌','icon'=>'',),
							array('name'=>'jy_yousetli','title'=>'优惠接力','desc'=>'将优惠传递下去','icon'=>'',),
							//array('name'=>'jy_helping','title'=>'微聚力','desc'=>'聚大家的力量成交点赞','icon'=>'',),
							//array('name'=>'jy_tousersale','title'=>'荐客有礼','desc'=>'发起推荐有礼活动','icon'=>'',),
							//array('name'=>'jy_codesale','title'=>'优惠码','desc'=>'用优惠码购买商品','icon'=>'',),
							//array('name'=>'jy_daysale','title'=>'周期购','desc'=>'指定周期成交有惊喜','icon'=>'',),
							//array('name'=>'jy_arsale','title'=>'AR挖宝','desc'=>'AR扫码挖宝，高大上','icon'=>'',),
							array('name'=>'jy_weishop','title'=>'预售','desc'=>'先预订，后消费','image'=>'../addons/jy_weishop/images/icon_yusou.jpg','actionurl'=>'jy_weishop/activity.presell.list/'),
							array('name'=>'jy_weishop','title'=>'预约核销','desc'=>'线上预约，线下消费','image'=>'../addons/jy_weishop/images/icon_hexiao.jpg','actionurl'=>'jy_weishop/store.verifylog/'),
							array('name'=>'jy_poster','title'=>'超级海报','desc'=>'用海报的形式宣传','icon'=>'',),
							array('name'=>'jy_invitation','title'=>'邀请卡','desc'=>'发个邀请卡给你朋友','icon'=>'',),
							array('name'=>'jy_cmslive','title'=>'直播购物','desc'=>'女神直播购物新潮流','icon'=>'',),
							array('name'=>'jy_renwu','title'=>'任务大厅','desc'=>'用任务的形式激活市场','icon'=>'',),
							array('name'=>'jy_sendgoods','title'=>'优品送礼','desc'=>'实现线上送礼功能','icon'=>'',),
							array('name'=>'jy_weishoppension','title'=>'养老金','desc'=>'自购商品订单，享有养老金','icon'=>'',),
							array('name'=>'jy_giftbao','title'=>'购物送礼包/权益包','desc'=>'实现线上购物送礼包/权益包','icon'=>'',),
			)),
			array('title'=>'商城-工具','list'=>array(
							array('name'=>'jy_merch','title'=>'掌上商家','desc'=>'商家手机打理店铺','icon'=>'',),
							array('name'=>'jy_peisong','title'=>'掌上配送员','desc'=>'配送员手机管理配送','icon'=>'',),
							array('name'=>'jy_sign','title'=>'积分签到','desc'=>'签到享积分','icon'=>'',),
							array('name'=>'jy_live','title'=>'网络监控','desc'=>'商品实时直播监控','icon'=>'',),
							array('name'=>'jy_messages','title'=>'消息营销','desc'=>'消息营销，刺激二次消费','icon'=>'',),
							array('name'=>'jy_polyapi','title'=>'进销存','desc'=>'一款第三方进销管理软件','icon'=>'',),
							array('name'=>'jy_depot','title'=>'仓库管理','desc'=>'一款管理商品入库，出库的插件','icon'=>'',),
							array('name'=>'jy_hwq','title'=>'好物圈','desc'=>'一键推送商品到微信好物圈','icon'=>'',),
							array('name'=>'jy_kefu','title'=>'全网客服','desc'=>'7种客服方式选择','icon'=>'',),
							array('name'=>'jy_echarts','title'=>'大数据可视化屏幕','desc'=>'大屏幕，科技感十足','icon'=>'',),
							array('name'=>'jy_offlineapi','title'=>'电商客下线门店接口','desc'=>'电商客下线门店接口','icon'=>'',),
			)),
			array('title'=>'商城-拓展','list'=>array(
							array('name'=>'jy_weishop_wxapp','title'=>'微信小程序','desc'=>'小程序有大流量','icon'=>'','actionurl'=>'core/wxapp.multiple/list/op=list&basicname=jy_weishop'),
							array('name'=>'jy_weishop_aliapp','title'=>'支付宝小程序','desc'=>'海量淘宝天猫市场','icon'=>'','actionurl'=>'core/aliapp.list/list/op=list&basicname=jy_weishop'),
							array('name'=>'jy_diyform','title'=>'自定义表单','desc'=>'设计个性表单','icon'=>'',),
							//array('name'=>'jy_exhelper','title'=>'快递助手','desc'=>'快递管理，一键发货','icon'=>''),
							array('name'=>'jy_tbassistant','title'=>'淘宝助手','desc'=>'海里商品，一键导入','icon'=>'',),
							array('name'=>'jy_diypage','title'=>'店铺装修','desc'=>'动动鼠标搭建个性店铺','icon'=>'',),
							array('name'=>'jy_weishop','title'=>'帮助中心','desc'=>'解决常规问题，节约客服','image'=>'../addons/jy_weishop/images/icon_store.jpg','actionurl'=>'jy_weishop/news.index/'),
							array('name'=>'jy_quntui','title'=>'微群推广加群','desc'=>'动动手指，群分分钟加满','icon'=>'',),
							array('name'=>'jy_onlineedu','title'=>'微商学院','desc'=>'微商教学体系,收费教学两不误','icon'=>'',),
							array('name'=>'jy_weishopniu','title'=>'电商客千牛','desc'=>'专注电商客商品批量操作','icon'=>'',),
			)),
			array('title'=>'商城-游戏','list'=>array(
							array('name'=>'jy_red_rain','title'=>'红包雨','desc'=>'随时随地，触发红包雨','icon'=>''),
							array('name'=>'jy_red_pin','title'=>'拼红包','desc'=>'随时随地，拼红包','icon'=>''),
			)),
);
//判断是否基本设置了
$inplugins=array();
$noplugins=array();
$legaoplugins=array();
$setplugins = $this->plugin_setting('setplugins');
foreach($list as $k=>&$type){
		foreach($type['list'] as $i=>&$p){
			$install = check_permission($p['name']);
			$plugin=pdo_get('core_plugins',array('name'=>$p['name']),array('title','image','hide'));
			if($plugin['hide']){
				unset($type['list'][$i]);
			}
			if($install){
				$p['title']=$p['name']!='jy_weishop' && $plugin['title']?$plugin['title']:$p['title'];
				$p['image']=$p['image']?:$plugin['image'];
				$p['is_install'] = 1;
				$p['is_show'] = 1;
			}else{
				$noplugins[]=$p['name'];
				//unset($type['list'][$i]);
				$p['is_install'] = 0;
				$p['is_show'] = 0;
				if($_SESSION['isfounder']){
					$p['is_show'] = 1;
				}
			}
			foreach($setplugins as $name=>&$pv){
					if($pv['status']==0 && $name && $name == $p['name']){
						$p['is_show'] = 0;
					}
			}
		}
}
return  $list;
?>